home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
bench
/
x.txt
/
000040_fdc@watsun.cc.columbia.edu_Mon Oct 15 16:00:58 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
57 lines
Article: 12851 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: scripting in server mode
Date: 15 Oct 2001 20:01:26 GMT
Organization: Columbia University
Lines: 40
Message-ID: <9qffam$mts$1@newsmaster.cc.columbia.edu>
References: <336f652d.0110151140.59de71dd@posting.google.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1003176086 23484 128.59.39.2 (15 Oct 2001 20:01:26 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 15 Oct 2001 20:01:26 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12851
In article <336f652d.0110151140.59de71dd@posting.google.com>,
Shifeux <shifeux@hotmail.com> wrote:
: Hello, I am trying to create a basic kermit script using kermit in
: server mode. I am able to setup the server using a simple script
: which will just sit and listen for incoming phone calls via a modem.
: What I would like to do now is log the entire session to a logfile...
:
What do you mean by "session"? You can log all the server's actions
in a transaction log. Just add:
LOG TRANSACTIONS filename
to the script before starting the server, specifying the desired file
for the log.
: ... and
: perform a little file managment after the session ends such as
: removing the files that had been transferred. All this while
: remaining in server mode so it can accept more incoming connections.
:
Kermit can't do two things at the same time. If it's in server mode,
all actions are initiated by the client. If it's in command mode, it
can execute commands itself.
: Can anyone point me to some references for scripting Kermit in server
: mode? Most of the resources I have been able to find are in regard to
: scripting kermit as a client rather than a server. Thanks.
:
There are probably better ways to do what you want. If you want to delete
each file from the source after, and only if, it has been successfully
transferred, there is a /DELETE switch on the client SEND and GET commands
for this. For tutorials on "atomic file movement", see:
http://www.columbia.edu/kermit/case10.html
and (when using FTP rather than Kermit protocol):
http://www.columbia.edu/kermit/ftpscripts.html
- Frank